%p#notice= notice

%h1 修改管理员密码
.hidden
  =text_field_tag 'user_mobile', current_admin.mobile
.row
  .col-md-3
    = form_tag admin_change_password_path, method: :put do
      .panel.panel-default
        .panel-heading 修改管理员密码
        .panel-body
          %span
            当前的管理员手机号码是：
            = current_admin.mobile
          .form-group
            %label.control-label 获取验证码
            .input-group
              = text_field_tag 'code', nil, autofocus: true, class: "form-control", placeholder: ""
              .input-group-addon#get-sms-code-btn{style:'cursor:pointer;'} 获取验证码
          .form-group
            %label.control-label 新的密码
            .input-group
              = password_field_tag 'password', nil, autofocus: true, class: "form-control", placeholder: ""
      %hr
      .panel.panel-danger
        .panel-heading
          %label.control-label 新的管理员手机号
        .panel-body
          %label.control-label 如果需要更新，则填写。如果不需要更新则不填写！！！
          .form-group
            .input-group
              = text_field_tag 'new_mobile', nil, autofocus: true, class: "form-control", placeholder: ""
      = submit_tag '更改密码', class: 'btn btn-primary'




-# form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
  = devise_error_messages!
  .field
    -#= f.label :mobile
  .field
    -#= f.label :mobile
    .form-group
      -#%label{for: "user_mobile"} 验证码
      .input-group{style: "width:100%"}
        .input-group-addon 验证码
        = text_field_tag 'code', nil, id: 'sms_code', class: 'form-control'
        .input-group-addon#get-sms-code-btn{style:'cursor:pointer;'} 获取验证码
        -#%span.btn.btn-primary#get-sms-code-btn 获取验证码
        =# f.text_field :mobile, autofocus: true, class: "form-control", placeholder: "请输入验证码"
  .field
    -#= f.label :password
    .form-group
      .input-group{style: "width:100%"}
        %label{for: "user_password"} 创建密码
        = f.password_field :password, autocomplete: "off", class: "form-control", placeholder: "请输入密码"
        - if @minimum_password_length
          %em
            (密码长度最短#{@minimum_password_length}位)
  -#
    .field
      -#= f.label :password_confirmation
      .form-group
        .input-group
          %label{for: "user_password_confirmation"} 确认密码
          = f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder: "确认密码"
  .actions
    = f.submit "注册"